﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.LogicalGroups.CUiLGRExportGroupsToExcelCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.LogicalGroups;

public sealed class CUiLGRExportGroupsToExcelCmd : TxButtonCommand
{
  private CApLGRExportGroupsToExcelEnabler m_groupsEnabler;

  public CUiLGRExportGroupsToExcelCmd()
  {
    this.m_groupsEnabler = new CApLGRExportGroupsToExcelEnabler();
  }

  public virtual void Execute(object cmdParams)
  {
    if (!TxAssemblyInfoEx.IsExcelInstalled(true, ""))
      return;
    new CUiLGRExportGroupsToExcelManager((ITxCommand) this).ExportGroups();
  }

  public virtual string Name => LGRLogicalGroupResource.EXPORT_TO_EXCEL_NAME;

  public virtual string Description => LGRLogicalGroupResource.EXPORT_TO_EXCEL_DESCRIPTION;

  public virtual string Tooltip => LGRLogicalGroupResource.EXPORT_TO_EXCEL_TOOLTIP;

  public virtual string Bitmap => "LogicalGroups.Resources.ExportGoupToExcel.bmp";

  public virtual string Category => LGRLogicalGroupResource.LOGICAL_GROUP_CATEGORY;

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_groupsEnabler;

  public virtual bool Licensed => TxCommandLicenser.LogicalGroupsLicense;

  public virtual ITxImage Image => (ITxImage) TxImageManager.GetImageByKey("ExportGroupsToExcel");
}
